package com.bsoft.gol.hcs.clinical.bean.vo;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Created by ChenJij on 2020/11/12.
 */
@XmlRootElement(name = "Data")
public class GetPrescriptionStateVo {
    private MsgHeader msgHeader;
    private MsgBody msgBody;

    @XmlElement(name = "MsgHeader")
    public MsgHeader getMsgHeader() {
        return msgHeader;
    }

    public void setMsgHeader(MsgHeader msgHeader) {
        this.msgHeader = msgHeader;
    }

    @XmlElement(name = "MsgBody")
    public MsgBody getMsgBody() {
        return msgBody;
    }

    public void setMsgBody(MsgBody msgBody) {
        this.msgBody = msgBody;
    }

    public static class MsgHeader{
        private String organization;
        private String sender;
        private String serviceType;
        private String msgType;
        private String msgVersion = "2.0";

        @XmlElement(name = "Organization")
        public String getOrganization() {
            return organization;
        }

        public void setOrganization(String organization) {
            this.organization = organization;
        }

        @XmlElement(name = "Sender")
        public String getSender() {
            return sender;
        }

        public void setSender(String sender) {
            this.sender = sender;
        }

        @XmlElement(name = "ServiceType")
        public String getServiceType() {
            return serviceType;
        }

        public void setServiceType(String serviceType) {
            this.serviceType = serviceType;
        }

        @XmlElement(name = "MsgType")
        public String getMsgType() {
            return msgType;
        }

        public void setMsgType(String msgType) {
            this.msgType = msgType;
        }

        @XmlElement(name = "MsgVersion")
        public String getMsgVersion() {
            return msgVersion;
        }

        public void setMsgVersion(String msgVersion) {
            this.msgVersion = msgVersion;
        }
    }

    public static class MsgBody {
        private String status;
        private String code;
        private String detail;
        private InnerData data;

        @XmlElement(name = "Status")
        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        @XmlElement(name = "Code")
        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        @XmlElement(name = "Detail")
        public String getDetail() {
            return detail;
        }

        public void setDetail(String detail) {
            this.detail = detail;
        }

        @XmlElement(name = "Data")
        public InnerData getData() {
            return data;
        }

        public void setData(InnerData data) {
            this.data = data;
        }

        public static class InnerData{
            private String VisitOrganization;
            private String HosArea;
            private String PatientType;
            private String RecipeNumber;
            private int State;

            @XmlElement(name = "VisitOrganization")
            public String getVisitOrganization() {
                return VisitOrganization;
            }

            public void setVisitOrganization(String visitOrganization) {
                VisitOrganization = visitOrganization;
            }

            @XmlElement(name = "HosArea")
            public String getHosArea() {
                return HosArea;
            }

            public void setHosArea(String hosArea) {
                HosArea = HosArea;
            }

            @XmlElement(name = "PatientType")
            public String getPatientType() {
                return PatientType;
            }

            public void setPatientType(String patientType) {
                PatientType = patientType;
            }

            @XmlElement(name = "RecipeNumber")
            public String getRecipeNumber() {
                return RecipeNumber;
            }

            public void setRecipeNumber(String recipeNumber) {
                RecipeNumber = recipeNumber;
            }

            @XmlElement(name = "State")
            public int getState() {
                return State;
            }

            public void setState(int state) {
                State = state;
            }
        }
    }
}